package com.ssy.lingxi.member.merchant.entity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 会员注册流程配置
 * @author 万宁
 * @version 2.0.0
 * @date 2021-11-09
 */
@Entity
@Table(schema = "public", name = "ms_mc_platform_process_rule", indexes = {@Index(name = "ms_mc_platform_process_rule_role_id_idx", columnList = "roleId")})
public class PlatformProcessRuleDO implements Serializable {
    private static final long serialVersionUID = -4029986856707868994L;

    @Id
    @GeneratedValue(strategy= GenerationType.SEQUENCE,generator="platform_process_rule_seq")
    @SequenceGenerator(sequenceName="ms_mc_platform_process_rule_seq", name="platform_process_rule_seq", allocationSize = 1)
    private Long id;

    /**
     * 会员角色Id
     */
    @Column
    private Long roleId;

    /**
     * 流程对应的工作流的Key
     */
    @Column(columnDefinition = "varchar(50)")
    private String processKey;

    /**
     * 是否为空流程（即：无需审核流程）
     */
    @Column
    private Boolean emptyProcess;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getProcessKey() {
        return processKey;
    }

    public void setProcessKey(String processKey) {
        this.processKey = processKey;
    }

    public Boolean getEmptyProcess() {
        return emptyProcess;
    }

    public void setEmptyProcess(Boolean emptyProcess) {
        this.emptyProcess = emptyProcess;
    }
}
